const residentModel = require('../Model/residentModel')

// 查询住户
exports.searchResident = async (req, res) => {
    // 表单数据
    console.log(req.body);
    // GET请求参数在query里， post请求参数在body里
    let { name } = req.body;
    let data = await residentModel.searchResident(name);
    console.log(data);

    res.send({
        success: true,
        msg: '查询成功！',
        data,
        status: '0'
    })
}